<template>
  <div>
    <el-descriptions class="margin-top" title="评估建议" :column="3" :size="size" border>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-user"></i>
        姓名
      </template>
      {{name}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-mobile-phone"></i>
        评估名称
      </template>
      {{eva.name}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-location-outline"></i>
        评估结果
      </template>
      {{eva.result}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-tickets"></i>
        建议
      </template>
     {{eva.advise}}
    </el-descriptions-item>
  </el-descriptions>
  </div>
</template>

<script>
export default {
data () {
    return {
        eva:"",
        name:this.$store.state.name.name
    }
},
methods:{
show(){
  
      // 发送GET请求
      this.axios
        .get("/rear/evalua", {
          params: { memberid: this.$store.state.name.id},
        })
        .then((rep) => {
          this.eva = rep.data;
          console.log(rep.data);
        });
}
},
created(){
  this.show();

}
}
</script>

<style scoped>

</style>